home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group94a.txt / 000160_icon-group-sender _Tue Jun 7 16:31:18 1994.msg < prev    next >
Internet Message Format  |  1994-08-19  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Tue, 7 Jun 1994 18:13:57 MST
  2. Date: Tue, 7 Jun 94 16:31:18 PDT
  3. From: eric@star-semi.com (Eric Armstrong)
  4. Message-Id: <9406072331.AA07354@star-semi.com>
  5. To: icon-group@cs.arizona.edu
  6. Subject: library of file operations
  7. Cc: icon-project@cs.arizona.edu
  8. Status: R
  9. Errors-To: icon-group-errors@cs.arizona.edu
  10.  
  11. Have been toying around with icon for a little bit now, and must say that
  12. I am mostly loving it.  My most recent effort was a little program to 
  13. add positive and negative numbers at the beginning of a line.  Fun to program,
  14. and quite simple, compared to what would be required in other languages.
  15.  
  16. Since I work on a Sun system, and have a 486 system at home, I see the
  17. need for a library of system-independent file functions.  For example, I
  18. would like to see:
  19.     a. given a path, return size
  20.     b. given a path, return date & time of last modification
  21.     c.   "   "   "      "   creation date & time
  22.     d. given a name, return path (search current dir, then search path)
  23.     e. generate file names in a directory (may already be in prog library)
  24.     f. identify type of file (directory, file, link)
  25.     g. file attributes (this is hard: permissions-structures differ a lot)
  26.  
  27. In some cases, systems without the requisite functionality could return an
  28. appropriate value (ex1: if no concept of path, the function path(name) would
  29. return name.  ex2: if no modification time, return &null.)  In other cases,
  30. lowest-common denominator may be the only possiblity -- for example, only 
  31. "owner" permissions, since not all systems have permissions for group & world.
  32.  
  33. Although a function for any one system would not be so hard, making a function
  34. that worked across all systems would be tough.  Anyone have any ideas on this
  35. issue, or have some libraries that would solve dos/unix part of the problem?
  36.  
  37. Thanks.
  38.  
  39. p.s. regarding last request on a way to handle bugs.  Am currently evaluating
  40.      a GNU-based system, GNATs, that comes with a good recommendation.  The
  41.      other interesting recommendation was Lotus NOTES.  Both are reported to
  42.      substantially fill the requirements I specified.
  43.  
  44.  
  45.